import time
from celery import Celery

BROKER_URL = 'redis://localhost:6379'
BACKEND_URL = 'redis://localhost:6379'
celery_app = Celery('tasks', broker=BROKER_URL, backend=BACKEND_URL)


@celery_app.task
def task_demo(x, y):
    time.sleep(11)

    return x + y
